import { BaseEntity } from '../../base/entity/base';
import { Column, Entity, Index } from 'typeorm';

/**
 * 租户信息
 */
@Entity('tenant_agent')
export class TenantAgentEntity extends BaseEntity {
  @Column({ comment: '代理商名称', nullable: true })
  name: string;

  @Column({ comment: '分成比例', default: 0 })
  ratio: number;

  @Column({ comment: '联系人', nullable: true })
  contact: string;

  @Column({ comment: '联系电话', nullable: true })
  phone: string;

  @Column({ comment: '账户状态', dict: ['正常', '停用'], default: 0 })
  status: number;

  @Column({ comment: '营业执照', nullable: true })
  businessLicense: string;

  @Column({ comment: '签约日期', type: 'date', nullable: true })
  signDate: Date;
}